package org.jeecg.modules.business.transfer.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import org.jeecg.modules.business.transfer.entity.PaperPurchase;
import org.jeecg.modules.business.transfer.entity.PaperPurchaseMaterial;
import org.jeecg.modules.business.transfer.entity.vo.PaperPurchaseParam;

import java.io.Serializable;
import java.util.Collection;
import java.util.List;

/**
 * @Description: 纸筒采购任务
 * @Author: jeecg-boot
 * @Date:   2023-11-14
 * @Version: V1.0
 */
public interface IPaperPurchaseService extends IService<PaperPurchase> {

	/**
	 * 添加一对多
	 *
	 * @param paperPurchase
	 * @param wmsPaperPurchaseMaterialList
	 */
	public String saveMain(PaperPurchase paperPurchase,List<PaperPurchaseMaterial> wmsPaperPurchaseMaterialList) ;
	
	/**
	 * 修改一对多
	 *
   * @param paperPurchase
   * @param wmsPaperPurchaseMaterialList
	 */
	public void updateMain(PaperPurchase paperPurchase,List<PaperPurchaseMaterial> wmsPaperPurchaseMaterialList);
	
	/**
	 * 删除一对多
	 *
	 * @param id
	 */
	public void delMain (String id);
	
	/**
	 * 批量删除一对多
	 *
	 * @param idList
	 */
	public void delBatchMain (Collection<? extends Serializable> idList);

	void send(String id);

	/**
	 * 分页
	 * @param page
	 * @param param
	 * @return
	 */
	Page<PaperPurchase> listByPage(Page<PaperPurchase> page, PaperPurchaseParam param);
	
}
